package edu.yuhf.mapper;

import edu.yuhf.domain.Order;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.*;
import org.apache.ibatis.type.JdbcType;

public interface OrderMapper {

    @Insert("insert into of_order(serial_number,desk_id,trade_status,pay_status,order_amount,create_time)" +
            " values(#{serialNumber},#{deskId},#{tradeStatus},#{payStatus},#{orderAmount},#{createTime})")
    @Options(useGeneratedKeys = true,keyProperty = "id",keyColumn = "id")
    public int  insertOrder(Order order);
}